import request from '@/utils/request'

// 查询项目折扣活动列表
export function listInspectionActivity(query) {
  return request({
    url: '/hospital/InspectionActivity/list',
    method: 'get',
    params: query
  })
}

// 查询项目折扣活动详细
export function getInspectionActivity(id) {
  return request({
    url: '/hospital/InspectionActivity/' + id,
    method: 'get'
  })
}

// 新增项目折扣活动
export function addInspectionActivity(data) {
  return request({
    url: '/hospital/InspectionActivity',
    method: 'post',
    data: data
  })
}

// 修改项目折扣活动
export function updateInspectionActivity(data) {
  return request({
    url: '/hospital/InspectionActivity',
    method: 'put',
    data: data
  })
}

// 删除项目折扣活动
export function delInspectionActivity(id) {
  return request({
    url: '/hospital/InspectionActivity/' + id,
    method: 'delete'
  })
}
